# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xfce4-mpc-plugin
pkgver=0.5.3
pkgrel=0
pkgdesc="MPD Client Plugin"
url="https://docs.xfce.org/panel-plugins/xfce4-mpc-plugin/start"
arch="all"
license="ISC"
makedepends="
	gtk+3.0-dev
	libxfce4ui-dev
	xfce4-dev-tools
	xfce4-panel-dev
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://gitlab.xfce.org/panel-plugins/xfce4-mpc-plugin/-/archive/xfce4-mpc-plugin-$pkgver/xfce4-mpc-plugin-xfce4-mpc-plugin-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
66ec587ed5f67e28e93fa796b492f00393d8ee12011b12c93a73e4ac4c4b4cc2495f5774706e0d01c90caa74e819082bc214dd362cbaa10aa52dca08be3fe3b5  xfce4-mpc-plugin-0.5.3.tar.gz
"

